Can You Explain This Simple Python Code